<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../../favicon.ico">
    <title>注册页面</title>
    <link href="./tpl/css/bootstrap.min.css" rel="stylesheet">
    <link href="./tpl/css/main.css" rel="stylesheet">
    <link href="./tpl/css/bootstrap-theme.min.css" rel="stylesheet">
    <link href="theme.css" rel="stylesheet">
</head>
<body>
    <?php if(isset($error)){ ?>
          <div class="alert alert-info" role="alert"><?php echo $error?></div>
    <?php } ?>   
    <form class="form-horizontal" action="./register.php" method="post">
      <div class="form-group login">
        <label for="inputEmail3" class="col-sm-2 control-label">注册名</label>
        <div class="col-sm-3">
          <input type="text" class="form-control" id="inputEmail3" placeholder="请输入注册名" name="username">
        </div>
      </div>
      <div class="form-group">
        <label for="inputPassword3" class="col-sm-2 control-label">注册密码</label>
        <div class="col-sm-3">
          <input type="password" class="form-control" id="inputPassword3" placeholder="请输入注册密码" name="password">
        </div>
      </div>
      <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <img src="./yzm/yzm.php" onclick="this.src='./yzm/yzm.php/'+Math.floor(Math.random()*10000)">
        </div>
        <div class="col-sm-2" id="yanzhengma">
             <input type="password" class="form-control" id="inputPassword3" placeholder="请输入验证码" name="yanzheng_code">
        </div>       
        <div  id="register-username">
          <button type="submit" class="btn btn-default">注册</button>
      </div>
    </form>
</body>
</html>